package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：lizimo
 * @date ：Created in 2020/1/2
 * @description ：用户权限Dao
 * @version: 1.0
 */
public interface UserPermissionDao {

    void insert(Permission permission);


    Long countRoleByPermissionId(@Param("permissionId") Integer permissionId);

    void delete(@Param("id") Integer id);

    void update(Permission permission);

    Permission selectById(@Param("id") Integer id);

    List<Permission> selectAll();

    Page<Permission> selectByConditon(@Param("queryString") String queryString);
}
